package cn.iocoder.yudao.module.mqtt.controller.admin.commport.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 通讯口配置新增/修改 Request VO")
@Data
public class CommPortSaveReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17081")
    private Long id;

    @Schema(description = "通讯口名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "通讯口名称不能为空")
    private String portName;

    @Schema(description = "波特率")
    private String baudRate;

    @Schema(description = "数据位")
    private String dataBits;

    @Schema(description = "校验位", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "校验位不能为空")
    private String parity;

    @Schema(description = "停止位")
    private String flowControl;

    @Schema(description = "流控制（可选）")
    private String subTopics;

    @Schema(description = "描述", example = "你说的对")
    private String description;

}